From: Ian Jackson Date: Tue, 18 Mar 2014 16:33:06 +0000 (+0000) Subject: libxl: hotplug scripts: stdout >& stderr X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5384 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=609a23a0ae5d7deb4d3e90c95de60ca25c9e7bf2;p=xen.git libxl: hotplug scripts: stdout >& stderr Plumb hotplug scripts' stdout to stderr. That way if they print anything (which really they shouldn't), it won't get mixed up with the application's stdout. (Eg, perhaps with an xl migration stream...) Signed-off-by: Ian Jackson CC: Roger Pau Monné CC: Vasiliy Tolstov Acked-by: Ian Campbell --- diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index ba7d100d0e..90f76b7a06 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -1031,7 +1031,7 @@ static void device_hotplug(libxl__egc *egc, libxl__ao_device *aodev) if (!pid) { /* child */ - libxl__exec(gc, -1, -1, -1, args[0], args, env); + libxl__exec(gc, -1, 2, -1, args[0], args, env); /* notreached */ abort(); }